package com.warrior.superdata.mysql.entity.dto;

import com.warrior.superdata.base.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @Description:
 * @ClassName: com.warrior.wisdom.machine.room.mysql.entity.dto.ApiResultDto.java
 * @date: 2022/2/23 10:43
 * @author xujian
 */
@Data
public class ApiResultDto extends BaseDto {

    @ApiModelProperty(value = "接口id")
    private Integer apiId;

    @ApiModelProperty(value = "返回字段名称")
    @NotBlank(message = "返回字段名称不能为空")
    private String resultName;

    @ApiModelProperty(value = "返回字段类型")
    //@NotBlank(message = "返回字段类型不能为空")
    private String resultJavaType;

    @ApiModelProperty(value = "返回对应表字段")
    @NotBlank(message = "返回对应表字段不能为空")
    private String resultTableFieldName;

    @ApiModelProperty(value = "返回对应表字段类型")
    @NotBlank(message = "返回对应表字段类型不能为空")
    private String resultTableFieldType;

    @ApiModelProperty(value = "导出表列名称")
    private String exportName;

    @ApiModelProperty(value = "排序类型 0:无排序 1:倒序 2:升序")
    private Integer sortType;

}


